package doc.talk;

import java.util.Date;

public class Record {

	private String data;
	private long unixTime;
	
	public Record(String inData)//constructor for a new user-generated record
	{
		data = inData;
		unixTime = new Date().getTime()/ 1000L;
	}
	
	public Record(String inData, long uT)//constructor for when the time is known
	{
		data = inData;
		unixTime = uT;
	}
	

	public String getData() {
		return data;
	}

	public long getUnixTime() {
		return unixTime;
	}

	public void setUnixTime(long unixTime) {
		this.unixTime = unixTime;
	}

	public void setData(String data) {
		this.data = data;
	}

	
}
